package com.ruoyi.system.domain.zbg;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("workorder")
public class WorkOrder {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "工单ID，自动增加，唯一标识一条记录")
    private Integer id;
    @ApiModelProperty(value = "工单流水")
    private String workOrderNumber;
    @ApiModelProperty(value = "警告和异常表id")
    private Long warExcpId;
    @ApiModelProperty(value = "工单区县")
    private String district;

    @ApiModelProperty(value = "维护人手机号")
    private String maintainerPhone;

    @ApiModelProperty(value = "维护人记录的异常原因")
    private String maintainerAbnormalReason;
    @ApiModelProperty(value = "维护人员的整改情况")
    private String maintainerRectification;
    @ApiModelProperty(value = "维护人员的维护状态：0表示未处理，1表示已处理")
    private Integer maintainerStatus;
    @ApiModelProperty(value = "维护时间")
    private LocalDateTime maintainerTime;

    @ApiModelProperty(value = "图片路径，存储图片的URL或本地路径")

    private String imagePath;
    @ApiModelProperty(value = "区县审核人的手机号")

    private String countyReviewerPhone;
    @ApiModelProperty(value = "区县审核状态：0表示未审核，1表示未通过，2代表已通过")

    private Integer countyReviewStatus;
    @ApiModelProperty("区县审核意见")

    private String countyReviewComment;
    @ApiModelProperty(value = "区县审核时间")
    private LocalDateTime countyReviewTime;
    @ApiModelProperty(value = "市级审核状态：0表示未审核，1表示未通过，2代表已通过")
    private Integer cityReviewStatus;
    @ApiModelProperty("市级审核意见")
    private String cityReviewComment;
    @ApiModelProperty(value = "压降费用测算金额（单位：万元）")

    private BigDecimal costReductionAmount;
    @ApiModelProperty(value = "市级审核人的手机号")

    private String cityReviewerPhone;
    @ApiModelProperty(value = "市级审核时间")
    private LocalDateTime cityReviewTime;

    @ApiModelProperty(value = "总体审核状态：0表示否，1表示是")
    private Integer overallStatus;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime; // 记录工单创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime; // 记录工单最后更新时间
    @ApiModelProperty(value = "费用类型")
    private String costCategory;
    @ApiModelProperty(value = "专业")
    private String profession;
}